import request from '../utils/request'

export const fetchRoleList = () => {
  return request({
    url: '/role/list',
    method: 'get',
  })
}

export const updateRole = roleForm => {
  return request({
    url: '/role/update',
    method: 'post',
    data: roleForm,
  })
}
